package com.chaodev.base.dao;

import com.chaodev.base.dto.InteractionGameDto;
import com.chaodev.base.model.InteractionGame;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InteractionGameDao {

    /**
     * 新增互动游戏
     * @param interactionGame
     * @return
     */
    int insertInteractionGame(InteractionGame interactionGame);

    /**
     * 修改互动游戏
     * @param interactionGame
     * @return
     */
    int updateInteractionGame(InteractionGame interactionGame);

    /**
     * 删除互动游戏
     * @param id
     * @return
     */
    int deleteInteractionGame(@Param(value = "id") String id);

    /**
     * 查询互动游戏列表
     * @param interactionGameDto
     * @return
     */
    List<InteractionGame> selectInteractionGameList(InteractionGameDto interactionGameDto);

    /**
     * 查询单条互动游戏
     * @param id
     * @return
     */
    InteractionGame selectInteractionGameById(@Param(value = "id") String id);

}
